package net.yxsoft.model.formdesigner.base;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;
import net.yxsoft.model.infrastructure.base.BaseModel;

/**
 * @author zhaohaibo
 */
public abstract class BaseFormDataSource<M extends BaseFormDataSource<M>> extends BaseModel<M> implements IBean {
  public void setId(String value) {
    set("id", value);
  }

  public String getId() {
    return get("id");
  }

  public void setPid(String value) {
    set("pid", value);
  }

  public String getPid() {
    return get("pid");
  }


  public void setName(String value) {
    set("name", value);
  }

  public String getName() {
    return getStr("name");
  }


  public void setState(Integer value) {
    set("state", value);
  }

  public Integer getState() {
    return getInt("state");
  }

  public void setSort(java.math.BigDecimal value) {
    set("sort", value);
  }

  public java.math.BigDecimal getSort() {
    return get("sort");
  }

  public void setCreated(java.util.Date value) {
    set("created", value);
  }

  public java.util.Date getCreated() {
    return get("created");
  }
}
